import plugin from '../../lib/plugins/plugin.js'
import fetch from 'node-fetch'
import { segment } from "oicq";


export class tbmjx extends plugin {
  constructor () {
    super({
      /** 功能名称 */
      name: '随机图规则',
      /** 功能描述 */
      dsc: '随即图规则',
      /** https://oicqjs.github.io/oicq/#events */
      event: 'message',
      /** 优先级，数字越小等级越高 */
      priority: 1000,
      rule: [
        {
          /** 命令正则匹配 */
          reg: '随机图规则',
          /** 执行方法 */
          fnc: 'setuguize'
        }
      ]
    })
  }


  async setuguize (e) {
logger.info('[用户命令]', e.msg)
await this.reply('口令：随机图\n随机出一张图\n70%穿衣服，不漏\n18%穿衣服，少漏\n8%穿游装\n2.8%穿游装,少漏\n1%穿游装,多漏\n0.2%不穿\n图片会在十秒后撤回。')}}